<template>
    <el-table v-bind="$props">
        <el-table-column v-for="(column) in columns" :key="column.prop" :prop="column.prop" :label="column.label" ></el-table-column>
    </el-table>
</template>

<script setup lang="ts">
const props = defineProps<{
    columns: { prop: string, label: string }[]
}>()
</script>